//
//  EatClassSecondTableViewCell.swift
//  01 联系
//
//  Created by 盈灿－刘鑫奇 on 16/2/16.
//  Copyright © 2016年 盈灿－刘鑫奇. All rights reserved.
//

import UIKit

protocol ReportUserDelegate{
    func reportLClick(number: Int)
    
}

class EatClassSecondTableViewCell: UITableViewCell {

    @IBOutlet weak var userImage: UIImageView!
    @IBOutlet weak var userName: UILabel!
    @IBOutlet weak var userDetailLabel: UILabel!
    @IBOutlet weak var userTimeLabel: UILabel!
    
    @IBOutlet weak var userReportButton: UIButton!
    var delegate : ReportUserDelegate!

    @IBAction func userReportClick(sender: UIButton) {
        
        self.delegate.reportLClick(sender.tag)
    }


    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        userImage.layer.cornerRadius = 20
        userImage.layer.masksToBounds = true
        
        
        
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
